import { Routes, Route } from 'react-router-dom';
import { routeList } from './route';

const Router = () => {
    return <Routes>
        <Route>
            {routeList.map((route) => <Route key={route.code} {...route} />)}
        </Route>
    </Routes>;
};
export default Router;
